package com.geetour.columbus.region.utils;

import java.util.ArrayList;
import java.util.List;

import com.geetour.columbus.common.model.R.CityPage;
import com.geetour.columbus.common.utils.RandomUUID;

public class CityPageUtil {

    public static List<CityPage> getCityByNames(String province, List<String> names) {
        if (names == null || names.isEmpty()) {
            return null;
        }
        List<CityPage> list = new ArrayList<CityPage>();
        for (String name : names) {
            CityPage city = new CityPage();
            city.setUuid(RandomUUID.code());
            city.setName(name);
            city.setProvince(province);
            list.add(city);
        }
        return list;
    }

}
